package cn.rongdao.jrkabao.bean.main;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by jack on 17/5/15
 */

public class ProductListBean implements Parcelable {
    /**
     * product_id : 51
     * cate_id : 4
     * org_name : 星点贷
     * org_des : 随借随还，快速到账
     * org_pic : https://mifengkongdemo.oss-cn-shenzhen.aliyuncs.com/fr_public_666610/10_63dbf7164940d14edfd2d57a384b3b71.png
     * grade_scope_lowest : 0
     * grade_scope_highest : 0
     * index_tag :
     * is_push_all : 0
     * is_apply : 0
     * org_link : http://demo.jianrong.mifengkong.cn/?source_id=&package_name=#/afterLoad?order_id=&uid=0&cate_id=4&product_id=51
     * jump_type : 2
     */

    private String product_id;
    private String cate_id;
    private String org_name;
    private String org_des;
    private String org_pic;
    private String grade_scope_lowest;
    private String grade_scope_highest;
    private String index_tag;
    private String is_push_all;
    private String is_apply;
    private String org_link;
    private int jump_type;
    private boolean isAddFootView = false ;
    private String is_hot_pic;

    protected ProductListBean(Parcel in) {
        product_id = in.readString();
        cate_id = in.readString();
        org_name = in.readString();
        org_des = in.readString();
        org_pic = in.readString();
        grade_scope_lowest = in.readString();
        grade_scope_highest = in.readString();
        index_tag = in.readString();
        is_push_all = in.readString();
        is_apply = in.readString();
        org_link = in.readString();
        jump_type = in.readInt();
        isAddFootView = in.readByte() != 0;
        is_hot_pic = in.readString();
    }

    public static final Creator<ProductListBean> CREATOR = new Creator<ProductListBean>() {
        @Override
        public ProductListBean createFromParcel(Parcel in) {
            return new ProductListBean(in);
        }

        @Override
        public ProductListBean[] newArray(int size) {
            return new ProductListBean[size];
        }
    };

    public String getIs_hot_pic() {
        return is_hot_pic;
    }

    public void setIs_hot_pic(String is_hot_pic) {
        this.is_hot_pic = is_hot_pic;
    }

    public String getIs_push_all() {
        return is_push_all;
    }

    public void setIs_push_all(String is_push_all) {
        this.is_push_all = is_push_all;
    }

    public String getIs_apply() {
        return is_apply;
    }

    public void setIs_apply(String is_apply) {
        this.is_apply = is_apply;
    }




    public boolean isAddFootView() {
        return isAddFootView;
    }

    public String getProduct_id() {
        return product_id;
    }

    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }

    public String getCate_id() {
        return cate_id;
    }

    public void setCate_id(String cate_id) {
        this.cate_id = cate_id;
    }

    public String getOrg_name() {
        return org_name;
    }

    public void setOrg_name(String org_name) {
        this.org_name = org_name;
    }

    public String getOrg_des() {
        return org_des;
    }

    public void setOrg_des(String org_des) {
        this.org_des = org_des;
    }

    public String getOrg_pic() {
        return org_pic;
    }

    public void setOrg_pic(String org_pic) {
        this.org_pic = org_pic;
    }

    public String getGrade_scope_lowest() {
        return grade_scope_lowest;
    }

    public void setGrade_scope_lowest(String grade_scope_lowest) {
        this.grade_scope_lowest = grade_scope_lowest;
    }

    public String getGrade_scope_highest() {
        return grade_scope_highest;
    }

    public void setGrade_scope_highest(String grade_scope_highest) {
        this.grade_scope_highest = grade_scope_highest;
    }

    public String getIndex_tag() {
        return index_tag;
    }

    public void setIndex_tag(String index_tag) {
        this.index_tag = index_tag;
    }


    public String getOrg_link() {
        return org_link;
    }

    public void setOrg_link(String org_link) {
        this.org_link = org_link;
    }

    public int getJump_type() {
        return jump_type;
    }

    public void setJump_type(int jump_type) {
        this.jump_type = jump_type;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {

        dest.writeString(product_id);
        dest.writeString(cate_id);
        dest.writeString(org_name);
        dest.writeString(org_des);
        dest.writeString(org_pic);
        dest.writeString(grade_scope_lowest);
        dest.writeString(grade_scope_highest);
        dest.writeString(index_tag);
        dest.writeString(is_push_all);
        dest.writeString(is_apply);
        dest.writeString(org_link);
        dest.writeInt(jump_type);
        dest.writeByte((byte) (isAddFootView ? 1 : 0));
        dest.writeString(is_hot_pic);
    }


    public void setEmptyList(boolean b) {
    }

    public ProductListBean() {

    }

    public ProductListBean(boolean isAddFootView) {
        this.isAddFootView = isAddFootView;
    }
}